<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$Config.sitename}</title>
    <meta content="{$Config.sitekeywords}" name="keywords">
    <meta content="{$Config.siteinfo}" name="description">
    <meta property="qc:admins" content="23756114776076725116375" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="__CSS__/global.css" />
    
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
	<script src="__JS__/jquery.lazyload.min.js"></script>
	<script type="text/javascript" src="__JS__/jquery.SuperSlide.2.1.1.js"></script>
	<script type="text/javascript">
		$(function(){
			$('img.lazy').lazyload();
		});
	</script>

</head>

<body>

<div class="b-page">


<include file="Public:header" />
<div class="n-div-bdy">
		<div class="n-div-top">
			<div class="left n-top-lt">
				<div class="n-lt-nv">
					<?php $i=0; ?>
					<foreach name="twoNaves" item="val">
						<if condition="$i lt 5">
						<div class="n-nv-ns">
							<img src="{$val.image}"><a href="/index/category/cfid/{$val.cateid}" class="n-nv-oe">{$val.catename}</a>
							<foreach name="val.sod" item="on">
								<if condition="$key lt 2">
								<a href="/category/{$on.cateid}">{$on.catename}</a>
								<if condition="$key lt 1">
								<span>/</span>
								</if>
								</if>
							</foreach>
							<div class="clear"></div>
						</div>
						</if>
						<?php $i++; ?>
					</foreach>
				</div>
				<div class="n-lt-sn">
					<div class="left n-sn-l">今天签到:{$signcount}人</div>
					<if condition="$mysign gt 0">
						<div class="left n-sn-rs"><img src="__IMAGES__/sn_img.png" style="float:left; padding:10px 0 0 11px;">签到成功</div>
					<else/>
						<div class="left n-sn-r"><a href="javascript:void(0);" class="R_ajax_trip" data-info="userid,{$userinfo.userid}" data-url="do/sign/">今日签到</a></div>
					</if>
				</div>
			</div>
			<div class="right n-top-rt l-center">
				 <foreach name="indexmidad" item="imad">
					<a href="{$imad.linkurl}" class="b-banner__item"><img src="__FILESURL__{$imad.image}" class="l-full"></a>
				</foreach>
				<div class="b-banner__nav">
					
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="n-rm">
			<div class="n-tit">热门推荐<span><a href="/dongtai/zuijia" class="rd-cr n-gd">（更多）</a></span></div>
			<div class="rm-dv">
				<div class="rm-dv-cr picScroll">
					<ul class="cr-ul">
						<foreach name="indexcatetj" item="ict">
							<li>
								<div class="ul-img"><a href="__WEBURL__/works/{$ict.workid}"><img src="__FILESURL__{$ict.image}"></a></div>
								<div class="ul-at"><a href="__WEBURL__/u/{$ict.openuid}"><img src="{$ict.uavatar|getUavatar}"></a></div>
								<div class="ul-tit">
									<p class="tit-ne"><a href="__WEBURL__/works/{$ict.workid}">{$ict.title|str_cut=20}</a></p>
									<p><a href="__WEBURL__/u/{$ict.openuid}" class="rd-cr">{$ict.nickname}</a></p>
								</div>
							</li>
						</foreach>
					</ul>
					<div class="clear"></div>
					<div class="rm-dv-rt next">&gt;</div>
					<div class="rm-dv-lt prev">&lt;</div>
				</div>
				
			</div>
		</div>
		<div class="n-rm-sp">
			<div class="rm-sp-lt left">
				<div class="sp-lt-ss">
					<div class="n-tit">随手拍<span><a href="/suipai" class="rd-cr n-gd">（更多）</a></span></div>
					<ul class="sp-ul">
						<foreach name="suipai" item="val">
						<li style="{$key%4==3?'margin-right:0px':''}">
							<a href="/suipai/{$val.id}">
								<div class="sp-ul-im"><img src="{$val.image}"></div>
								<p class="sp-ti-nm">{$val.title}</p>
							</a>
						</li>
						</foreach>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="sp-lt-ss">
					<div class="n-tit">烘焙热门文章&nbsp;&nbsp;<span>
						<foreach name="newsClass" item="val">
						<a href="/news/category/id/{$val.id}" class="rd-cr n-gd">{$val.name}</a>&nbsp;&nbsp;
						</foreach>
					</span></div>
					<div class="n-nwse">
						<div class="nwse-img"><a href="{$rightopad.linkurl}"><img src="__FILESURL__{$rightopad.image}"></a></div>
						<ul class="nwsr-txt">
							<foreach name="indextjnews" item="itn">
								 <if condition="$itn.linkurl neq ''">
									<li style="{$key==0?'margin-top:0px':''}"><a href="{$itn.linkurl}">{$itn.title|str_cut=25}</a></li>
								 <else/>
								 	<li style="{$key==0?'margin-top:0px':''}"><a href="__WEBURL__/news/{$itn.id}.html">{$itn.title|str_cut=25}</a></li>	
								 </if>
							 </foreach>
						</ul>
						<div class="clear"></div>
					</div>
					<div class="n-js">
						<a href="/category/2" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img8.jpg"></div>
							<p>戚风蛋糕</p>
						</a>
						<a href="/category/4" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img3.jpg"></div>
							<p>慕斯蛋糕</p>
						</a>
						<a href="/category/8" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img11.jpg"></div>
							<p>生日蛋糕</p>
						</a>
						<a href="/category/5" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img1.jpg"></div>
							<p>蛋糕卷</p>
						</a>
						<a href="/category/11" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img12.jpg"></div>
							<p>提拉米苏</p>
						</a>
							<a href="/category/37" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img10.jpg"></div>
							<p>全麦面包</p>
						</a>
						<a href="/category/38" class="kd-tp-as" style="margin-right:0px;">
							<div class="as-img"><img src="/static/home/images/js_img13.jpg"></div>
							<p>吐司面包</p>
						</a>
						<a href="/category/30" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img9.jpg"></div>
							<p>曲奇饼干</p>
						</a>
						<a href="/category/47" class="kd-tp-as" >
							<div class="as-img"><img src="/static/home/images/js_img7.jpg"></div>
							<p>葡式蛋挞</p>
						</a>
						<a href="/category/49" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img4.jpg"></div>
							<p>南瓜派</p>
						</a>
							<a href="/category/17" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img6.jpg"></div>
							<p>披萨</p>
						</a>
						<a href="/category/18" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img5.jpg"></div>
							<p>泡芙</p>
						</a>
						<a href="/category/31" class="kd-tp-as">
							<div class="as-img"><img src="/static/home/images/js_img2.jpg"></div>
							<p>马卡龙</p>
						</a>
						<a href="/category/19" class="kd-tp-as" style="margin-right:0px;">
							<div class="as-img"><img src="/static/home/images/js_img14.jpg"></div>
							<p>月饼</p>
						</a>
						<div class="clear"></div>
					</div>
				</div>
				<div class="n-lt-ad">
					<a href="{$indexleftad.linkurl}" target="_blank"><img src="__FILESURL__{$indexleftad.image}"/></a>
				</div>
				<div class="n-lt-rf">
					<div class="rf-tite">
						<ul>
							<li>热门食谱，大家做出<span class="rd-cr">{$count}</span>作品</li>
							<li><a href="/dongtai/zuijia" class="rd-cr">热门食谱</a><a href="/dongtai" class="rd-cr">最新上传</a></li>
						</ul>
					</div>
					<foreach name="wokRes" item="no">
					<div class="rf-zs">
						<div class="rf-zs-lt left">
							<a href="/works/{$no.workid}" class="rf-zs-a"><img src="{$no.image}"></a>
							<p class="rd-cr" style="padding-top:20px;">{$no.title|str_cut=8}的作品</p>
							<p class="rf-zs-p">{$no.title|str_cut=8}作品的<span class="rd-cr">{$no.count}</span>个</p>
						</div>
						
						<foreach name="no.son" item="te">
						<a href="/copy/{$te.workid}" class="rf-zs-a" style="{$key==2?'margin-right:0px':''}"><img src="{$te.image}"></a>
						</foreach>
						
						<div class="clear"></div>
					</div>
					</foreach>
					
				</div>
				
			</div>
			<div class="right rm-sp-rt">
				<div class="sp-rt-ts">
					<div class="n-tit">名师指导</div>
					<div class="rt-ts-dv">
						<img src="/static/home/images/news/news-ds.jpg">
						<div>
							<p class="rd-cr">跟着导师学烘焙</p>
							<p>黎国雄烘焙导师是具有传奇经历的“中国糖艺第一人”，...</p>
						</div>

					</div>
				</div>
				<div class="sp-rt-ts TB-focus">
					<div class="rt-ad-img">
						  <ul>
						  		<foreach name="indexrightad" item="ira">
						  			<li><a href="{$ira.linkurl}"  target="_blank"><img src="__FILESURL__{$ira.image}"></a></li>
								</foreach>
						  </ul>
					</div>
					<div class="hd">
						<ul>
							<?php $ki = 1;?>
							<foreach name="indexrightad" item="ira">
								<li>{$ki}</li>
								<?php ++$ki;?>
							</foreach>
						</ul>
					</div>
				</div>
				<div class="sp-rt-ts">
					<div class="n-tit">正在分享的作品<span><a href="/dongtai" class="rd-cr n-gd">（更多）</a></span></div>
					<div class="n-fenx">
						<foreach name="timeWorks" item='val'>
						<div class="n-fx-dv">
							
							<div class="fx-dv-tit">
								<a href="/u/{$val.openuid}"><img src="{$val.uavatar|getUavatar}"></a><div><a href="/u/{$val.openuid}"><span class="rd-cr">{$val.nickname}</span></a> &nbsp;<a href="/works/{$val.workid}">{$val.title}</a></div>
							</div>
							<a href="/works/{$val.workid}" class="fx-dv-a"><img src="{$val.image}"></a>
						</div>
						</foreach>
					</div>
					
				</div>
				<div class="sp-rt-ts">
					<a href="__WEBURL__/member/daren" class="ts-darn">申请达人</a>
					<div class="n-tit ts-darn-tile">烘焙达人</div>
					<div class="n-fenx">
						<foreach name="sharedaren" item="sd">
						<div class="drn-div">
							<div class="drn-div-img">
								<a href="__WEBURL__/u/{$sd.openuid}"><img src="{$sd.uavatar|getUavatar}"></a>
							</div>
							<div class="drn-div-info">
								<p><a href="__WEBURL__/u/{$sd.openuid}" class="a-info-titl">{$sd.nickname}</a></p>
								<p><a href="__WEBURL__/u/{$sd.openuid}/fans">{$sd.fansnum|getNullNum}关注</a></p>
								<p><a href="__WEBURL__/u/{$sd.openuid}">{$sd.worksnum|getNullNum}个作品</a></p>
							</div>
							  <if condition="$sd.isfans eq true">
							 	 <a href="" class="n-a-arf R_ajax_link" data-info="userid,{$sd.userid}" data-url="do/cancelfans/" style="background-color:#dbdbdb">取消关注</a>
								
							<else/>
								<a href="" class="n-a-arf R_ajax_link" data-info="userid,{$sd.userid}" data-url="do/addfans/">+关注</a>
							</if>
							
							<div class="clear"></div>
						</div>
						</foreach>
					</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>
</div>
<include file="Public:footer" />

</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script src="__JS__/jquery.marquee.js"></script>
<script type="text/javascript">
    $(function(){
        $("#homecase").marquee({direction: "left",step: 4,pause: 2000,speed:10});
    });
</script>
<script type="text/javascript">
	jQuery(".picScroll").slide({ mainCell:"ul", effect:"leftLoop", vis:4, autoPlay:true, interTime:1000, switchLoad:"_src" });
	jQuery(".TB-focus").slide({ mainCell:".rt-ad-img ul",effect:"fold",autoPlay:true,delayTime:200 });
</script>

</body>
</html>